Skip to content

Conversation

@mrubens
Copy link
Collaborator

@mrubens mrubens commented Aug 30, 2025

Important

Converts relative image paths in release notes to full GitHub URLs in marketplace-publish.yml and updates release.md documentation.

  • GitHub Actions Workflow:
    • In marketplace-publish.yml, converts relative image paths in changelog to full GitHub URLs for PNG, JPG, JPEG, GIF, WEBP, and SVG files.
  • Documentation:
    • Updates release.md to mention conversion of PNG image paths to GitHub raw URLs in release notes.

This description was created by Ellipsis for f8051e8. You can customize this summary. It will automatically update as commits are pushed.

@mrubens mrubens requested review from cte and jr as code owners August 30, 2025 03:43
@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. documentation Improvements or additions to documentation labels Aug 30, 2025
Copy link
Contributor

@roomote roomote bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution! I've reviewed the changes and the implementation looks good overall. The feature to convert relative image paths to GitHub raw URLs in release notes is useful and well-implemented. I've left a few suggestions inline that could improve the robustness and flexibility of the solution.

# Convert relative image paths to full GitHub URLs for proper display in release notes
# Use the main branch URL since the images will be merged there before release
# Only match .png files to avoid accidentally modifying other references
changelog_content=$(echo "$changelog_content" | sed "s|(releases/\([^)]*\.png\))|(https://github.com/${{ github.repository }}/raw/main/releases/\1)|g")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider supporting more image formats beyond just PNG. You could modify this to:

This would handle .jpg, .jpeg, .gif, and .svg files as well.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@roomote-agent good point, make it handle those types too

# Convert relative image paths to full GitHub URLs for proper display in release notes
# Use the main branch URL since the images will be merged there before release
# Only match .png files to avoid accidentally modifying other references
changelog_content=$(echo "$changelog_content" | sed "s|(releases/\([^)]*\.png\))|(https://github.com/${{ github.repository }}/raw/main/releases/\1)|g")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the hardcoded 'main' branch assumption always valid? If a release is created from a different branch or tag, the images might not be accessible. Could we use the actual release tag or branch instead?

For example, you could use:

This would reference the images from the release tag itself.

@hannesrudolph hannesrudolph added the Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. label Aug 30, 2025
@roomote
Copy link
Contributor

roomote bot commented Aug 30, 2025

On it! I'll update the workflow to handle additional image formats (jpg, jpeg, gif, svg) as suggested. Working on the changes now.

@roomote
Copy link
Contributor

roomote bot commented Aug 30, 2025

I've updated the workflow to support multiple image formats (jpg, jpeg, gif, svg) in addition to png. The change modifies line 87 in .github/workflows/marketplace-publish.yml to use a regex pattern that matches all these formats.

Change made:

- changelog_content=$(echo "$changelog_content" | sed "s|(releases/\([^)]*\.png\))|(https://github.com/${{ github.repository }}/raw/main/releases/\1)|g")
+ changelog_content=$(echo "$changelog_content" | sed "s|(releases/\([^)]*\.\(png\|jpg\|jpeg\|gif\|svg\)\))|(https://github.com/${{ github.repository }}/raw/main/releases/\1)|g")

However, I encountered a permission issue when trying to push the changes - the GitHub App doesn't have workflows permission to update workflow files. The changes have been made locally and committed. You'll need to either:

  1. Grant the app workflows permission, or
  2. Apply this change manually

The implementation is ready and all tests pass successfully!

@daniel-lxs daniel-lxs moved this from Triage to PR [Needs Prelim Review] in Roo Code Roadmap Sep 2, 2025
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Sep 2, 2025
@daniel-lxs daniel-lxs moved this from PR [Needs Prelim Review] to PR [Needs Review] in Roo Code Roadmap Sep 2, 2025
@hannesrudolph hannesrudolph added PR - Needs Preliminary Review PR - Needs Review and removed Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. PR - Needs Preliminary Review labels Sep 2, 2025
@mrubens mrubens closed this Sep 2, 2025
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Sep 2, 2025
@github-project-automation github-project-automation bot moved this from PR [Needs Review] to Done in Roo Code Roadmap Sep 2, 2025
@daniel-lxs daniel-lxs deleted the roolease_notes branch September 2, 2025 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation lgtm This PR has been approved by a maintainer PR - Needs Review size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants